function check_form(){
    name = document.getElementById('user_name');
    if(name.value==''){
        return false;
    }
    user_pwd = document.getElementById('user_pwd').value;
    config_user_pwd = document.getElementById('config_user_pwd').value;
    if(user_pwd!=config_user_pwd){
        alert('Password error!');
        return false;
    }
    return true;
}
function del_confirm(user_id,user_name){
    if(confirm("Are you sure to delete this user?")){
        location.href="/bin/root.py/delete_user?user_id="+user_id+"&amp;user_name="+user_name;
    }else{
        return false;
    }
}
